//
//  TEResponse.m
//  TintExample
//
//  Created by Kevin Wu on 2/27/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import "TEResponse.h"

@implementation TEResponse

@synthesize state = _state;
@synthesize message = _message;
@synthesize user = _user;

- (void)dealloc {
    TTRelease(_state);
    TTRelease(_message);
    TTRelease(_user);
    [super dealloc];
}

+ (NSDictionary *)propertyMap {
    return [NSDictionary dictionaryWithObjectsAndKeys:
            @"state", @"state", 
            @"message", @"message", 
            @"user", @"user", nil];
}

- (NSString *)description {
    return [NSString stringWithFormat:@"%@[state=%@ message=%@]", NSStringFromClass([self class]), _state, _message];
}

@end
